cmake_minimum_required(VERSION 3.9)

set(BASE_FILES
        CMAutoTestCommand.cpp
        CMAutoTestCommand.h
        CMCommandInstance.cpp
        CMCommandInstance.h
        CMFifoHandler.cpp
        CMFifoHandler.h
        CMTestKeyCommand.cpp
        CMTestKeyCommand.h
        )

add_library(${PROJECT_NAME} STATIC ${BASE_FILES})

add_executable(cmautotest
        ${BASE_FILES}
        cmautotest.cpp
        )

link_directories(${CMAKE_BUILD_RPATH}/common/misc/)
link_directories(${CMAKE_BUILD_RPATH}/common/utils/)
target_link_libraries(cmautotest
        misc
        utils
        pthread
        )